package smallnetflix;

import java.io.IOException;

import polarizedMF.Step8b_Ordinal_MeasureF1Margin;
import writeToExcel.WritePrecisionToExcel;
import constants.Constants;

public class Step8b_Ordinal_MeasureF1Margin_smallnetflix {

	public static void main(String[] args) throws IOException {
		double[][] posPrecision = new double[6][5];
		double[][] negPrecision = new double[6][5];
		double[][] posRecall = new double[6][5];
		double[][] negRecall = new double[6][5];
		double[][] posF1 = new double[6][5];
		double[][] negF1 = new double[6][5];

		String svm_dir = Constants.svm_dir+"smallnetflix\\";
		String[] epsilons = { "0", "05", "1", "15", "2", "25" };
		String fold = "5";

		for (int i = 0; i < 6; i++) {
			String epsilon = epsilons[i];
			for (int j = 0; j < 5; j++) {
				Step8b_Ordinal_MeasureF1Margin step8b = new Step8b_Ordinal_MeasureF1Margin(
						svm_dir, fold, epsilon, 0.0 + 0.5 * j);
				posPrecision[i][j] = step8b.getPosPrecision();
				negPrecision[i][j] = step8b.getNegPrecision();
				posRecall[i][j] = step8b.getPosRecall();
				negRecall[i][j] = step8b.getNegRecall();
				posF1[i][j] = step8b.getPosF1();
				negF1[i][j] = step8b.getNegF1();
				System.out
						.println("------------------------------------------------------------------------------------");
			}

		}

		String datasetName = "smallnetflix";
		WritePrecisionToExcel writeToExcel = new WritePrecisionToExcel(
				datasetName, fold, posPrecision, negPrecision, posRecall,
				negRecall, posF1, negF1);
	}
}
